<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="E:\桌面文件\笔记\Note\Vuejs\测试代码\vue.min.js"></script>
    <title>Demo-02</title>
</head>
<body>
    <div id='vue-det'>
        <p>{{num}}</p>
        <h1 v-if="num>0.5">大于0.5</h1>
        <h1 v-else="num<0.5">小于0.5</h1>
    </div>
    
</body>
<script src="02.js"></script>
</html>